/**
 * index 功能
 * @date 2023/10/7
 */

export const defineComponents: AppInterface.IComponentType = {
  about: defineAsyncComponent(() => import("@/views/demo/AboutView")),
  login: defineAsyncComponent(() => import("@/views/login")),
  generateShortcut: defineAsyncComponent(() => import("@/views/demo/GenerateShortcutView")),
  appIcon: defineAsyncComponent(() => import("@/views/demo/AppIconView")),
};

/**
 * 获取指定组件
 * @param name
 */
export const getComponent = (name: string) => {
  return defineComponents[name];
};
